﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Reporting.WebForms;


namespace Farmacia.net.Ventas.ComprobanteVenta
{
    public partial class frmModificarComprobanteVenta : BasePage<frmModificarComprobanteVenta>
    {
        protected void Page_Load(object sender, EventArgs e)
        {
                        if (!Page.IsPostBack)
            {
                var pedidoId = Request.QueryString["IdPedido"];

                if (pedidoId != null)
                {
                    var param = new ReportParameter("IdPedido", pedidoId.ToString());
                    ReportViewer1.ServerReport.SetParameters(param);
                    ReportViewer1.ServerReport.Refresh();
                }
                }
        }
    }
}